﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DictionaryManage.aspx.cs" Inherits="GreatB2C.Web.Manage.CRM.DataDictionary.DictionaryManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>数据字典管理</title>
    <link href="../../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/MasterPage.css" type="text/css"
        rel="stylesheet" />

    <script type="text/javascript" src="../../../Resource/Script/pagebase.js"></script>

<script type="text/javascript">
    function EnsureSingle(obj) {
        var last = document.getElementById("hdnLast");
        if (last.value == null || last.value == "") {
            last.value = obj.id;
        }
        else {
            var element = document.getElementById(last.value);
            element.checked = false;
            last.value = obj.name;
        }
        obj.checked = "checked";
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <span style="height: 25px; line-height: 25px;"><span>
            <img src="../../../App_Themes/AdminDefaultTheme/Images/localGIF.gif" align="absmiddle"
                style="border-width: 0px;" />后台管理 </span><span>&gt;&gt; </span><span><a>客户关系管理</a></span><span>
                    &gt;&gt; </span><span><a>客户管理</a></span></span>
    </div>
    <div>
        <table class="border" cellspacing="1" cellpadding="0" border="0" border="0" style="width: 100%;">
            <tr class="tdbg">
                <td align="right">
                    <input type="hidden" id="hdnLast"  value="" runat="server" />
                    &nbsp;&nbsp;&nbsp;<asp:Button ID="btnSaveSetting" runat="server" Text="保存设置" 
                        class="inputbutton" onmouseover="this.className='inputbutton_hover'" 
                        onmouseout="this.className='inputbutton'" onclick="btnSaveSetting_Click"/>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <table class="border" cellspacing="1" cellpadding="0" border="0" border="0" style="width: 100%;">
            <tr class="tdbg" align="center">
                <td valign="top">
                    
                    <asp:GridView ID="gdvList" runat="server" AutoGenerateColumns="False" Width="100%"
                        AllowPaging="True" onrowdatabound="gdvList_RowDataBound">
                        <PagerSettings Visible="False" />
                        <Columns>
                            <asp:TemplateField HeaderText="序号">
                                <ItemTemplate>
                                    <%# (Container.DataItemIndex+1).ToString()%>
                                </ItemTemplate>
                                <HeaderStyle Width="45px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="默认">
                                <HeaderStyle Width="180px" />
                                <ItemTemplate>
                                <asp:RadioButton ID="rbDefaultValue" runat="server" Checked='<%# Eval("DefaultValue").ToString().Trim() == "0" ? false:true %>'/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="启用">
                                <HeaderStyle Width="180px" />
                                <ItemTemplate>
                                <asp:CheckBox ID="chkUsed" runat="server"  Checked='<%# Eval("Used").ToString().Trim() == "0" ? false:true %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="选项值">
                            <ItemTemplate>
                            <asp:TextBox ID="txtDictValue" runat="server" Text='<%# Eval("DictValue")%>'></asp:TextBox>
                            </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr class="tdbg" align="center">
                <td align="center">
                    &nbsp;</td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
